package com.test.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {
	private static final Logger logger = LoggerFactory.getLogger(LoginController.class);

	@RequestMapping("/success")
	public String success(){
		logger.info("登录成功");
		return "success";
	}

	@RequestMapping("/error")
	public String error(){
		logger.info("登录失败");
		return "error";
	}
}
